$(document).ready(function () {
    //获取当前页面
    const nowPage=window.location.href.substring(window.location.href.lastIndexOf("\/")+1,window.location.href.length);
    //document.getElementById('popupTop').style.display='none';
    let isShowPopup=true;
    //改变菜单栏菜单的颜色
    if(nowPage==='index.html'){
        document.getElementById('popup0').style.color='#3aa5c5';
    }
    //隐藏或显示菜单栏
    $("#headBtn").click(function(){
        if(isShowPopup){
            $('#popupTop').removeClass('hidePopup');
            document.getElementById('headBtnImg').src='img/closeIcon.png';
            document.getElementById('headTitle').innerHTML='搜索';
        }else{
            $('#popupTop').addClass('hidePopup');
            document.getElementById('headBtnImg').src='img/moreIcon.png';
            document.getElementById('headTitle').innerHTML='长木医疗';
        }
        isShowPopup=!isShowPopup;
    })
})
